package net.randomice.emf.observables.generator.util;

import java.util.Collection;

import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
import org.eclipse.emf.codegen.util.ImportManager;

public class GenModelHelper {

	public static void initialize(GenModel m) {
		m.reconcile();
	}

	public static void prepareImports(GenModel m, String packageName){
		m.setImportManager(new ImportManager(packageName));
	}
	
	public static String getImportedName(GenModel m, String qualifiedName){
		return m.getImportedName(qualifiedName);
	}
	
	public static Collection<String> getImports(GenModel m){
		return m.getImportManager().getImports();
	}
}
